#ifndef DISTINGUISH_H
#define DISTINGUISH_H

#include <QWidget>

//摄像头
#include <QCamera>
#include <QCameraImageCapture>
#include <QCameraViewfinder>
#include <QVideoProbe>

namespace Ui {
class distinguish;
}

class distinguish : public QWidget
{
    Q_OBJECT

public:
    explicit distinguish(QWidget *parent = 0);
    ~distinguish();

    // 新增的方法
    void adjustViewfinderSize();

private slots:
    // 合并槽函数
    void on_button_open_clicked();
    void on_button_takeph_clicked();  // 来自 zhao 分支
    void on_button_close_clicked();   // 来自 zhao 分支
    void on_pushButton_clicked();     // 来自 HEAD 分支

private:
    Ui::distinguish *ui;
    QString fileName;

    // 摄像头相关成员变量
    QCamera *camera;
    QCameraViewfinder *viewfinder;
    QCameraImageCapture *capture;
    QVideoProbe *probe;
};

#endif // DISTINGUISH_H
